# Copyright (c) 2018 Presto Labs Pte. Ltd.
# Author: xguo

from coin.exchange.base.kr_rest.product_info import ProductInfo, ProductHolder
from coin.exchange.quoinex_v2.kr_rest.product import QuoinexProduct


def get_holder_from_product(product):
  assert isinstance(product, QuoinexProduct)
  if product.quote.symbol != 'JPY':
    raise NotImplementedError(product.quote)

  product_info = ProductInfo(qty_precision=8, price_precision=5)
  return ProductHolder(product, product_info)
